#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import verifymobile_blueprint
from api.verifyMobileResource.verifyMobileResource import VerifyMobileResource
from api.verifyMobileResource.verifyMobileOtherResource import VerifyMobileOtherResource

api = Api(verifymobile_blueprint)

api.add_resource(VerifyMobileResource, '/verifyMobile/<mobile_verify_id>', '/verifyMobile', endpoint='VerifyMobile')


@verifymobile_blueprint.route('/verifymobile/update/<mobile_verify_id>', methods=['PUT'], endpoint='VerifyMobileUpdate')
def update(mobile_verify_id):
    return VerifyMobileOtherResource.sensitive_update(mobile_verify_id)
